#include "sysconfighandler.h"

#define INVALID_INT_DATA    (10)

SysConfigHandler::SysConfigHandler(QObject *parent) :
    QObject(parent),
    m_deviceName(""),
    m_IP(""),
    m_active(false),
    m_registered(INVALID_INT_DATA),
    m_deviceStatus(INVALID_INT_DATA),
    m_callRate("")
{
}

SysConfigHandler &SysConfigHandler::instance()
{
    static SysConfigHandler interface;
    return interface;
}

QString SysConfigHandler::deviceName() const
{
    return m_deviceName;
}

void SysConfigHandler::setDeviceName(const QString &deviceName)
{
    m_deviceName = deviceName;
}
QString SysConfigHandler::IP() const
{
    return m_IP;
}

void SysConfigHandler::setIP(const QString &IP)
{
    m_IP = IP;
}
bool SysConfigHandler::active() const
{
    return m_active;
}

void SysConfigHandler::setActive(bool active)
{
    m_active = active;
}
int SysConfigHandler::registered() const
{
    return m_registered;
}

void SysConfigHandler::setRegistered(int registered)
{
    m_registered = registered;
}
int SysConfigHandler::deviceStatus() const
{
    return m_deviceStatus;
}

void SysConfigHandler::setDeviceStatus(int deviceStatus)
{
    m_deviceStatus = deviceStatus;
}

QString SysConfigHandler::version() const
{
    return m_version;
}

void SysConfigHandler::setVersion(const QString &version)
{
    m_version = version;
}
QString SysConfigHandler::mask() const
{
    return m_mask;
}

void SysConfigHandler::setMask(const QString &mask)
{
    m_mask = mask;
}
QString SysConfigHandler::gateway() const
{
    return m_gateway;
}

void SysConfigHandler::setGateway(const QString &gateway)
{
    m_gateway = gateway;
}
QString SysConfigHandler::callRate() const
{
    return m_callRate;
}

void SysConfigHandler::setCallRate(const QString &callRate)
{
    m_callRate = callRate;
}
QString SysConfigHandler::dns() const
{
    return m_dns;
}

void SysConfigHandler::setDns(const QString &dns)
{
    m_dns = dns;
}










